package com.pubinfo.passbook.common.model.vo.witeoff;

import com.pubinfo.passbook.common.model.vo.base.IErrorCode;
import com.pubinfo.passbook.common.model.vo.base.ResultCode;

public enum WiteoffResultCode implements IErrorCode {
  
  SUCCESS(200, "操作成功"),
  FAILED(500, "操作失败"),
  VALIDATE_FAILED(402, "参数检验失败"),
  FORBIDDEN(403, "没有相关权限报销"),
  INVOICE_IS_NOT(405, "票据不能为空"),
  NOT_MANY_SUBITEM(407, "目前不支持报销多个子单"),
  NOT_ONENESS(408, "请单独报销门诊或者是住院票据"),
  NOT_SUPPORTED_CITY(410, "目前不支持该地区报账"),
  NOT_REIMBURSEMENT_STANDARD(409, "没有达到报销标准"),
  NOT_REIMBURSABLE_ITEM(411, "票据中含有不可报销项目");

  public final Integer code;
  public final String message;
  
  WiteoffResultCode(Integer code, String message) {
    this.code = code;
    this.message = message;
  }
  
  @Override
  public Integer getCode() {
    return code;
  }
  
  @Override
  public String getMessage() {
    return message;
  }
  
}
